package com.neuedu.yunong.service.impl;
import lombok.RequiredArgsConstructor;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neuedu.yunong.mapper.YunongFamilyMembersMapper;
import com.neuedu.yunong.domain.YunongFamilyMembers;
import com.neuedu.yunong.service.IYunongFamilyMembersService;

/**
 * 家庭成员经济Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-13
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class YunongFamilyMembersServiceImpl extends ServiceImpl<YunongFamilyMembersMapper, YunongFamilyMembers> implements IYunongFamilyMembersService
{
    private final YunongFamilyMembersMapper yunongFamilyMembersMapper;

    /**
     * 查询家庭成员经济
     * 
     * @param id 家庭成员经济主键
     * @return 家庭成员经济
     */
    @Override
    public YunongFamilyMembers selectYunongFamilyMembersById(Long id)
    {
        return yunongFamilyMembersMapper.selectYunongFamilyMembersById(id);
    }

    /**
     * 查询家庭成员经济列表
     * 
     * @param yunongFamilyMembers 家庭成员经济
     * @return 家庭成员经济
     */
    @Override
    public List<YunongFamilyMembers> selectYunongFamilyMembersList(YunongFamilyMembers yunongFamilyMembers)
    {
        return yunongFamilyMembersMapper.selectYunongFamilyMembersList(yunongFamilyMembers);
    }

    /**
     * 新增家庭成员经济
     * 
     * @param yunongFamilyMembers 家庭成员经济
     * @return 结果
     */
    @Override
    public int insertYunongFamilyMembers(YunongFamilyMembers yunongFamilyMembers)
    {
        return yunongFamilyMembersMapper.insertYunongFamilyMembers(yunongFamilyMembers);
    }

    /**
     * 修改家庭成员经济
     * 
     * @param yunongFamilyMembers 家庭成员经济
     * @return 结果
     */
    @Override
    public int updateYunongFamilyMembers(YunongFamilyMembers yunongFamilyMembers)
    {
        return yunongFamilyMembersMapper.updateYunongFamilyMembers(yunongFamilyMembers);
    }

    /**
     * 批量删除家庭成员经济
     * 
     * @param ids 需要删除的家庭成员经济主键
     * @return 结果
     */
    @Override
    public int deleteYunongFamilyMembersByIds(Long[] ids)
    {
        return yunongFamilyMembersMapper.deleteYunongFamilyMembersByIds(ids);
    }

    /**
     * 删除家庭成员经济信息
     * 
     * @param id 家庭成员经济主键
     * @return 结果
     */
    @Override
    public int deleteYunongFamilyMembersById(Long id)
    {
        return yunongFamilyMembersMapper.deleteYunongFamilyMembersById(id);
    }
}
